home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-06-01 | 1.3 KB | 55 lines | [ftFC/NLft] |
- {
- The two programs defined here can be used to transfer parameters from
- the Parameter window to a data window and from a data window to the
- Parameter window.
-
- Param_ToDataWindow1 takes the numbers in the parameter
- window and copies them into a column of a data window.
-
- DataWindow_ToParam1 takes a column from a data
- window and copies it into the parameter window.
-
- To use these programs, first click the button "Add" above, then
- choose them from the Misc menu.
- }
-
-
-
- {*****************************************************************}
- program Param_ToDataWindow1;
-
- var i, dataWindow, column: integer;
-
- procedure Initialize; { default values for variables }
- begin
- dataWindow := 0;
- column := 1;
- end;
-
- begin
- Input('$WData window', dataWindow, '$CColumn', column);
- SetCurrentWindow(dataWindow);
- for i:=1 to GetNumFunctionParams('') do
- data[i,column]:= GetFunctionParam('', i)
- end;
-
-
-
- {*****************************************************************}
- program DataWindow_ToParam1;
-
- var i, dataWindow, column:integer;
-
- procedure Initialize; { default values for variables }
- begin
- dataWindow := 0;
- column := 1;
- end;
-
- begin
- Input('$WData window', dataWindow, '$CColumn', column);
- SetCurrentWindow(dataWindow);
- for i:=1 to GetNumFunctionParams('') do
- if Dataok(i,column) then
- SetFunctionParam('', i, data[i,column]);
- end;